/**
 * @ Author: Yoann Meclot. MSay2
 * @ Created on: 2020-08-28 11:42:33
 * @ Modified on: 2020-10-01 13:34:28
 *
 * @version 1.5
 */
/**
 * Copyright (c) 2020 MSay2, Yoann Meclot - @msay2/tspoet
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import { CodeWriter } from "./CodeWriter.js";
import { TSAnnotation } from "./TSAnnotation.js";
import { TSConstant } from "./TSConstant.js";
import { TSMethod } from "./TSMethod.js";
import { TSObject } from "./TSObject.js";
import { Modifier, TypeName } from "./TSPoet.js";
import { TSProperty } from "./TSProperty.js";
import { TSVariable } from "./TSVariable.js";
/**
 * @version 1.4
 */
declare abstract class TSBuilder {}
/**
 * @version 1.3
 */
declare abstract class TSBase
{
    abstract emitClass(codeWriter: CodeWriter): CodeWriter;
    abstract emitEnum(codeWriter: CodeWriter): CodeWriter;
    abstract emitInterface(codeWriter: CodeWriter): CodeWriter;
    abstract emitVar(codeWriter: CodeWriter): CodeWriter;
    abstract emitType(codeWriter: CodeWriter): CodeWriter;
}
/**
 * Build a new element type.
 *
 * TSType allows to you build a classes, interfaces, custom elements and declarables types and vars.
 *
 * @class TSType
 * @version 1.5
 */
export declare class TSType extends TSBase
{
    constructor(builder: TSBuilder);

    /**
     * Init a new builder for create a class.
     *
     * @param name The name of the class.
     * @throws {NullPointerException} Check if the name is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    static classBuilder(name: string): ClassBuilder;

    /**
     * Init a new builder for create a enumeration.
     *
     * @param name The name of the enum.
     * @throws {NullPointerException} Check if the name is null.
     * @type {EnumBuilder}
     * @since 1.0
     */
    static enumBuilder(name: string): EnumBuilder;

    /**
     * Init a new builder for create a interface.
     *
     * @param name The name of the interface.
     * @throws {NullPointerException} Check if the name is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    static interfaceBuilder(name: string): InterfaceBuilder;

    /**
     * Init a new builder for create a custom element.
     *
     * @param name The name of the custom element tag.
     * @throws {NullPointerException} Check if the name is null.
     * @type {CustomElementBuilder}
     * @since 1.2
     */
    static customElementBuilder(name: string): CustomElementBuilder;

    /**
     * Init a new builder for create a declarable type or var.
     *
     * @type {DeclarableBuilder}
     * @since 1.4
     */
    static declarableBuilder(): DeclarableBuilder;
    
    emitClass(codeWriter: CodeWriter): CodeWriter;
    emitEnum(codeWriter: CodeWriter): CodeWriter;
    emitInterface(codeWriter: CodeWriter): CodeWriter;
    emitCustomElement(codeWriter: CodeWriter): CodeWriter;
    emitVar(codeWriter: CodeWriter): CodeWriter;
    emitType(codeWriter: CodeWriter): CodeWriter;
}
/**
 * @version 1.1
 * @since 1.0
 */
export declare class ClassBuilder extends TSBuilder
{
    constructor(name: string);

    /**
     * Add a importation for the class.
     *
     * @param tsImport The TSImport object for join the values of your importation.
     * @throws {NullPointerException} Check if the import is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addImport(path: string, ...nameClasses: string[]): ClassBuilder;

    /**
     * Add a documentation.
     *
     * @param arg Your comment.
     * @type {ClassBuilder}
     * @since 1.1
     */
    addDoc(arg: string): ClassBuilder;

    /**
     * Add modifiers for the class.
     *
     * @param modifiers The modifiers to be added.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): ClassBuilder;

    /**
     * Add a annotation for the class.
     *
     * @param tsAnnotation The annotation to be added.
     * @throws {NullPointerException} Check if the TSAnnotation object is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addAnnotation(tsAnnotation: TSAnnotation): ClassBuilder;

    /**
     * Add a method for the class.
     *
     * @param tsMethod The method to be added.
     * @throws {NullPointerException} Check if the TSMethod object is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addMethod(tsMethod: TSMethod): ClassBuilder;

    /**
     * Add a variable for the class.
     *
     * @param tsVariable The variable to be added.
     * @throws {NullPointerException} Check if the TSVaraible object is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addVariable(tsVariable: TSVariable): ClassBuilder;

    /**
     * Set a super class for the class.
     *
     * @param typeName The type of the super class.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    setSuperclass(typeName: TypeName): ClassBuilder;

    /**
     * Add a interface to implement for the class.
     *
     * @param typeName The return type.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    addInterface(typeName: TypeName): ClassBuilder;

    /**
     * Transtype your class.
     *
     * @param objectName The name of your object to transtype.
     * @throws {NullPointerException} Check if the object name is null.
     * @type {ClassBuilder}
     * @since 1.0
     */
    transtypeTo(objectName: string): ClassBuilder;

    /**
     * Build the class.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the imports is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the annotations is null.
     * @throws {NullPointerException} Check if the methods is null.
     * @throws {NullPointerException} Check if the variable is null.
     * @throws {NullPointerException} Check if the super class is null.
     * @throws {NullPointerException} Check if the interface is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
/**
 * @version 1.1
 * @since 1.0
 */
export declare class EnumBuilder extends TSBuilder
{
    constructor(name: string);

    /**
     * Add modifiers for the enumeration.
     *
     * @param modifiers The modifiers to be added.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @type {EnumBuilder}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): EnumBuilder;

    /**
     * Add a documentation.
     *
     * @param arg Your comment.
     * @type {EnumBuilder}
     * @since 1.1
     */
    addDoc(arg: string): EnumBuilder;

    /**
     * Add a constant for the enumearation.
     *
     * @param tsConstant The constant to be added.
     * @throws {NullPointerException} Check if the TSConstant object is null.
     * @type {EnumBuilder}
     * @since 1.0
     */
    addConstant(tsConstant: TSConstant): EnumBuilder;

    /**
     * Build the enumeration.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the constant is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
/**
 * @version 1.1
 * @since 1.0
 */
export declare class InterfaceBuilder extends TSBuilder
{
    constructor(name: string);

    /**
     * Add a importation for the interface.
     *
     * @param tsImport The import to be added.
     * @throws {NullPointerException} Check if the TSImport object is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    addImport(path: string, ...nameClasses: string[]): InterfaceBuilder;

    /**
     * Add a documentation.
     *
     * @param arg Your comment.
     * @type {InterfaceBuilder}
     * @since 1.1
     */
    addDoc(arg: string): InterfaceBuilder;

    /**
     * Set a super class for th interface.
     *
     * @param typeName The type of the super class.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    setSuperclass(typeName: TypeName): InterfaceBuilder;

    /**
     * Add modifiers for the interface.
     *
     * @param modifiers The modifiers to be added.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): InterfaceBuilder;

    /**
     * Add a property or methods for the interface.
     *
     * @param tsProerty The interface property.
     * @throws {NullPointerException} Check if the TSProperty object is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    addProperty(tsProerty: TSProperty): InterfaceBuilder;

    /**
     * Transtype the Interface.
     *
     * @param objectName The name of your object to transtype.
     * @throws {NullPointerException} Check if the object name is null.
     * @type {InterfaceBuilder}
     * @since 1.0
     */
    transtypeTo(objectName: string): InterfaceBuilder;

    /**
     * Build the interface.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the import is null.
     * @throws {NullPointerException} Check if the super class is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the method is null.
     * @throws {NullPointerException} Check if the property is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
/**
 * @version 1.0
 * @since 1.2
 */
export declare class CustomElementBuilder extends TSBuilder
{
    constructor(name: string);

    /**
     * Set the reference object.
     *
     * @param tsObject The reference of the object.
     * @throws {NullPointerException} Check if the TSObject object is null.
     * @type {CustomElementBuilder}
     * @since 1.0
     */
    setObject(tsObject: TSObject): CustomElementBuilder;

    /**
     * Set a super class for the custom element.
     *
     * @param superclass The super class name (div, button ...etc).
     * @throws {NullPointerException} Check if the super class name is null.
     * @type {CustomElementBuilder}
     * @since 1.0
     */
    setSuperclass(superclass: string): CustomElementBuilder;

    /**
     * Build a custom element.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
/**
 * @version 1.0
 * @since 1.4
 */
declare class DeclarableBuilder
{
    constructor();

    /**
     * Init a new declarable var.
     *
     * @type {DeclarableVar}
     * @since 1.0
     */
    forVar(): DeclarableVar;

    /**
     * Init a new declarable type.
     *
     * @param name The name of type.
     * @type {DeclarableType}
     * @since 1.0
     */
    forType(name: string): DeclarableType;
}
/**
 * @version 1.0
 * @since 1.4
 */
export declare class DeclarableVar extends TSBuilder
{
    constructor();

    /**
     * Join your interface builder for create a var declarable.
     *
     * This method ignore the super class.
     *
     * @param interfaceBuilder The interface builder.
     * @throws {NullPointerException} Check if the InterfaceBuilder object is null.
     * @type {DeclarableVar}
     * @since 1.0
     */
    add(interfaceBuilder: InterfaceBuilder): DeclarableVar;

    /**
     * Build declarable var.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the import is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @throws {NullPointerException} Check if the method is null.
     * @throws {NullPointerException} Check if the property is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
/**
 * @version 1.0
 * @since 1.4
 */
export declare class DeclarableType extends TSBuilder
{
    constructor(name: string);
    
    /**
     * Add new modifiers.
     *
     * @param modifiers The modifiers to be added.
     * @throws {NullPointerException} Checkif the modifiers is null.
     * @type {DeclarableType}
     * @since 1.0
     */
    addModifiers(...modifiers: Modifier[]): DeclarableType;
    
    /**
     * Set a return type for declarable type.
     *
     * @param typeName The return type.
     * @throws {NullPointerException} Check if the TypeName object is null.
     * @type {DeclarableType}
     * @since 1.0
     */
    return(typeName: TypeName): DeclarableType;
    
    /**
     * Build a declarable type.
     *
     * @throws {NullPointerException} Check if the name is null.
     * @throws {NullPointerException} Check if the modifiers is null.
     * @type {TSType}
     * @since 1.0
     */
    build(): TSType;
}
export { };
//# sourceMappingURL=TSType.d.ts.map